<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="assets/css/components.css">
    <link rel="stylesheet" type="text/css" href="assets/css/login.css">
    <link rel="stylesheet" type="text/css" href="assets/css/main.css">
</head>
<body>
<header></header>

<div class="portlet-body form">
    <!-- BEGIN FORM-->
    <form class="form-horizontal" action="javascript:" onsubmit="return false" id="form_login">
        <!-- 公钥使用 RSAEncryptUtils.java 生成，解密时，请使用对应的私钥 2017-03-14 12:50:31 -->
        <input type="hidden" name="pubKey" id="pubKey"
               value="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCN63P2Ab4IZKKycxLTRDaRaep1UGLGAskkfEob6XTjmNWOFKILdZcJJ3FR75T7hs9yHYWPkV0Bcezm0zw/Zqcu92yD7T5J7Tbx9xScBzKnIvE7noWTdlTghqMQ3il2nphUfPprpHoAF9T003Bx8kxu9FJ9O9APzOf0rqteH3M5RwIDAQAB">
        <div class="form-body">
            <h3 class="form-section">
                <span>用户登录</span>
            </h3>
            <div class="form-group">
                <label class="control-label col-md-3" for="J_username">
                    用户名 <span class="required">*</span>
                </label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="username" maxlength="30" onpaste="return false"
                           placeholder="用户名/邮箱/已验证手机" aria-required="true" autocomplete="off" id="J_username"/>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-3" for="J_password">
                    密码 <span class="required">*</span>
                </label>
                <div class="col-md-6">
                    <input type="password" class="form-control" name="password" maxlength="20" onpaste="return false"
                           placeholder="密码" aria-required="true" autocomplete="off" id="J_password"/>
                    <span id="passwordRow">
                        <span id="passwordStrength"></span>
                        <span id="passwordStrengthText"></span>
                    </span>
                </div>
            </div>
            <div class="form-group hide" id="div-captchaCode">
                <label class="control-label col-md-3" for="J_captchaCode">
                    验证码 <span class="required">*</span></label>
                <div class="col-md-6">
                    <input type="text" class="form-control input-small" name="captchaCode" maxlength="4"
                           autocomplete="off"
                           onpaste="return false" placeholder="请输入验证码" id="J_captchaCode"/>
                    <img class="img-captcha-code" src="public/captcha/image" title="验证码"
                         onclick="this.src='public/captcha/image?_='+(Date.now());$('#J_captchaCode').val('')"
                         id="img-captchaCode"/>
                </div>
            </div>
            <div class="form-group">
                <div class="form-check" style="margin-left: 165px;">
                    <input type="checkbox" class="remember-me" name="rememberMe" value="1" id="J_rememberMe">
                    <label for="J_rememberMe">自动登录</label>
                </div>
                <div style="margin-left: 165px;">
                    <a href="javascript:" class="reset-pwd-link">忘记密码？</a>
                </div>
            </div>
            <div class="form-actions">
                <div class="row">
                    <div class="col-md-offset-3 col-md-9">
                        <button type="submit" class="btn green btn-login">登 录</button>
                        <a href="register.html" class="reset-pwd-link">立即注册 &gt;</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!-- END FORM-->
</div>
<footer></footer>
<script type="text/javascript" src="assets/requirejs/require.js" data-main="assets/main"></script>
<script type="text/javascript">
    require(["../login"], function(login) {
        login.init();
    });
</script>
</body>
</html>
